<?php
apf_require_class('Solr_Bll_BaseBiz');
class Solr_Bll_ReportHostBiz extends Solr_Bll_BaseBiz {

    private static $instance;

    public static function &get_instance() {
        if(!self::$instance){
           	self::$instance = new self();
        }
        return self::$instance;
    }

    public function insert_report_host($params){
        $report_host_dao=$this->get_report_host_dao();
        $report_host_dao->insert_report_host($params);
    }

    public function get_host_reports_list($params,$page,$limit=20){
        $page=max(1,intval($page));
        $report_dao=$this->get_report_host_dao();
        return $report_dao->get_host_reports_list($params,$page,$limit);
    }

    public function get_host_reports_count($params){
        $report_dao=$this->get_report_host_dao();
        return $report_dao->get_host_reports_count($params);
    }

}